//
//  MPTSpeedUploadVideoEditor.h
//  MPTCapture
//
//  Created by Khazmovsky on 16/4/12.
//  Copyright © 2016年 Jeakin. All rights reserved.
//

#import <AVFoundation/AVFoundation.h>

typedef struct {
    CGAffineTransform transform;
    BOOL isNeedResize;
    BOOL isLandscape;
    CGFloat ratio;
    CGFloat scale;
    CGSize targetSize;
    CGFloat estimatedDataRate;
}  MPTVideoInfo;


@interface MPTSpeedUploadVideoEditor : NSObject

@property (nonatomic, readonly) AVAsset *composition;
@property (nonatomic, readonly) AVVideoComposition *videoComposition;
@property (nonatomic, readonly) AVAudioMix *audioMix;
@property (nonatomic, readonly) MPTVideoInfo videoInfo;

- (instancetype)initWithVideoFilePath:(NSString *)filePath withRange:(CMTimeRange)timeRange;
- (instancetype)initWithAsset:(AVAsset *)asset withRange:(CMTimeRange)timeRange;
- (instancetype)initWithVideoFileURL:(NSURL *)fileURL withRange:(CMTimeRange)timeRange;

@end
